XIQS Create Topup Code

From IQsimWiki

Jump to: navigation, search

XIQS Create Topup Code - Topup Management

Description
createXIQSTopup ( String voucher , Long peak , Long offpeak , Long bonus , Long smspeak , Long smsoffpeak , Long smsbonus , Long id_priceplan , Long transfercredit , [ Long id_partition ] , [ String comment ] )
Add a Topup Code for current partition and returns the new entry Id.
If current logged user is administrator, he should specify the target partition for this new entry.
Parameters

String voucher

Voucher code

Long peak

SIM Call Peak (mn) value to recharge

Long offpeak

SIM Call Off Peak (mn) value to recharge

Long bonus

SIM Call Bonus (mn) value to recharge

Long smspeak

SIM SMS Peak value to recharge

Long smsoffpeak

SIM SMS Off Peak value to recharge

Long smsbonus

SIM SMS Bonus value to recharge

Long id_priceplan

Price Plan Id

Long transfercredit

Amount to decrease from transfer SIM card

[ Long id_partition ]

Partition Id

[ String comment ]

topup comment
Return Values
Structure
Long id - Topup Code Id

Error Data structure ( Error Management )

Possible failure code returns
*ERR_OBJECT_EXISTS (451) ERR_MSG_TOPUP_FOUND
*ERR_SRV_INTERNAL (500) ERR_MSG_NO_DB
See Also

getXIQSTopupList

importXIQSTopup

updateXIQSTopup

deleteXIQSTopup

resetXIQSTopupList

Personal tools
Namespaces
Variants
Views
Actions
Navigation
XIQS XML Protocol
XIQS Framework Libraries
XIQS Command List